import {SET_FILTER, ALL} from './actionTypes'

export const reducer = (state=ALL, action) => {
    switch(action.type) {
        case SET_FILTER:
        return action.filter

        default:
        return state
    }
}